import { StrictMode, Suspense } from "react";
import { createRoot } from "react-dom/client";
import "./index.css";
import { App } from "./App.tsx";
import { BrowserRouter } from "react-router-dom";
import "@ant-design/v5-patch-for-react-19";
import zhCN from "antd/es/locale/zh_CN";
import { ConfigProvider } from "antd";

createRoot(document.getElementById("root")!).render(
  <StrictMode>
    {/* <App /> */}
    <Suspense>
      <BrowserRouter basename="/shoppingCart">
        <ConfigProvider locale={zhCN}>
          <App />
        </ConfigProvider>
        {/* <App /> */}
      </BrowserRouter>
    </Suspense>
  </StrictMode>
);
